/* 
 * File:   SocketFactory.h
 * Author: robbiediaz
 *
 * Created on January 27, 2009, 10:47 PM
 */

#ifndef _SOCKETFACTORY_H
#define	_SOCKETFACTORY_H

#include <vector>

#include "unixsocket.h"
#include "winsocket.h"

class socketFactory {
public:

    genericSocket* getSocket() {
#ifdef WIN32
        genericSocket* sock = new winSock();
        return sock;
#endif

#ifdef unix
        genericSocket* sock = new unixSocket();
        return sock;
#endif
        return NULL;
    }
};

#endif	/* _SOCKETFACTORY_H */

